<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCommonCityBusinTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('common_city_busin', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('sort',4)->default(0)->comment('排序');
            $table->string('name',20)->comment('城市名称');
            $table->integer('province_id')->default(0)->comment('省份id');
            $table->string('letter',20)->comment('首字母');
            $table->date('effect_date')->comment('生效时间');
            $table->integer('admin_id')->default(0)->comment('操作人id');
            $table->integer('status',4)->default(0)->comment('状态,1:上线、2:未上线、0:失效');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('common_city_busin');
    }
}
